<!-- mate start -->
<?php $this->load->view('assists/mate.php') ?>
<!-- mate end -->
<link rel="stylesheet"  href="<?=base_url('static/index/css/menu.css')?>" />
<link rel="stylesheet" href="<?=base_url('static/index/css/message_content.css')?>">
<title>我的消息内容</title>
<!-- header strat -->
<?php $this->load->view('assists/header.php') ?>
<!-- header end -->
	<div id="top-alert" class="fixed alert-success" style="display:none;">
    	<button class="close fixed" >×</button>
    	<p class="alert-content">这是内容</p>
    </div>
	<div id="user_center">
		<div class="user_center clearfix">
			<?php $this->load->view('assists/menu.php') ?>
			<div class="my_message">
				<div class="AdminHead">
					<h2>我的消息内容</h2>
				</div>
				<div class="message_content_list">
					<ul class="message_content_list_ul">
						<?php foreach ($message_content_list as $row){
							if($row['suid']==$this->session->userdata('uid')){
						?>
						<li class="clearfix">
							<div class="userLeft">
								<a href="#">
									<img src="<?=base_url($row['slogo'])?>">
								</a>
							</div>
							<div class="userRight">
								<div class="user_title clearfix">
									<h4><?=$row['susername']?></h4>
									<p><?=date("Y-m-d H:i:s",$row['sendtime'])?></p>
								</div>
								<div class="message_content_content">
									<p><?=$row['content']?></p>
								</div>
							</div>
						</li>
						<?php }else{?>
						<li class="clearfix">
							<div class="rightUserLeft">
								<a href="#">
									<img src="<?=base_url($row['slogo'])?>">
								</a>
							</div>
							<div class="rightUserRight">
								<div class="right_user_title clearfix">
									<h4><?=$row['susername']?></h4>
									<p><?=date("Y-m-d H:i:s",$row['sendtime'])?></p>
								</div>
								<div class="right_message_content_content">
									<p><?=$row['content']?></p>
								</div>
							</div>
						</li>
						<?php }}?>
					</ul>
				</div>
				<div class="answer">
					<form action="<?=site_url('Message/answer/'.$toUid)?>" method="post" class="form-horizontal">
						<div class="answer_left">
							<textarea name="content" class="answer_content"></textarea>
						</div>
						<input type="button" value="回复" id="answer_btn" class="answer_btn ajax-post" target-form="form-horizontal" />
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- footer start -->
   	<?php $this->load->view('assists/footer.php') ?>
   	<!-- footer end -->
   	<script type="text/javascript" src="<?=base_url('static/index/js/ajax.js')?>"></script>
</body>
</html>